<template>
  <div>
    <!-- 图片部分 -->
    <div class="bgcUrl"></div>
    <el-row class="tac">
    <!-- 侧边导航 -->
      <el-col :span="5">
        <h5></h5>
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
          router
        >
          <el-menu-item index="/page/group">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>集团概况</span>
            </template>
          </el-menu-item>
          <el-menu-item index="/page/company">
            <i class="el-icon-menu"></i>
            <span slot="title">公司概况</span>
          </el-menu-item>
          <el-menu-item index="/page/enterprise">
            <i class="el-icon-document"></i>
            <span slot="title">企业管理</span>
          </el-menu-item>
          <el-menu-item index="/page/contact">
            <i class="el-icon-setting"></i>
            <span slot="title">联系我们</span>
          </el-menu-item>
        </el-menu>
      </el-col>
      <!-- 右边部分 -->
      <el-col :span="19">
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>

<style lang="scss" scoped>
.bgcUrl {
  height: 230px;
  background: url("@/assets/common/55.jpg") no-repeat;
  background-position: center;
  display: flex;
  -webkit-box-pack: center;
  position: relative;
  // margin-bottom: 50px;
}
.el-menu {
  .el-menu-item {
    font-size: 20px;
    margin: 60px 80px;
  }
}
</style>